package com.ljh.onlinetest.service;

import com.github.pagehelper.PageInfo;
import com.ljh.onlinetest.domain.Question;
import com.ljh.onlinetest.viewmodel.admin.question.QuestionEditRequestVM;
import com.ljh.onlinetest.viewmodel.admin.question.QuestionRequestPageVM;

/**
 * @author ljh
 * @ClassName QuestionService.java
 * @createTime 2022年01月20日
 */
public interface QuestionService extends BaseService<Question> {
    PageInfo<Question> listPage(QuestionRequestPageVM requestPageVM);

    QuestionEditRequestVM getQuestionEditRequestVM(Integer id);

    QuestionEditRequestVM getQuestionEditRequestVM(Question question);

    Question insertFullQuestion(QuestionEditRequestVM vm,Integer userId);

    Question updateFullQuestion(QuestionEditRequestVM model);

    Integer selectAllCount();
}
